import axiosMethods from '@/utils/request'
import { LOGIN_PREFIX } from '@/api/apiConst'
// 分页获取监测点信息
export function waterMonitorPageList(params) {
  return axiosMethods.post(LOGIN_PREFIX + '/water/monitor/pageList', params)
}
// 分页获取监测点信息
export function waterPointPageList(params) {
  return axiosMethods.post(LOGIN_PREFIX + '/water/point/pageList', params)
}

// 分页获取监测点信息
export function waterPointSaveOrUpdate(params) {
  return axiosMethods.post(LOGIN_PREFIX + '/water/point/saveOrUpdate', JSON.stringify(params), {
    transformRequest: [
      function(data) {
        return data
      }
    ],
    headers: {
      'Content-Type': 'application/json'
    }
  })
}

// 删除监测点信息
export function waterPointDelete(params) {
  return axiosMethods.get(LOGIN_PREFIX + '/water/point/delete', params)
}

// 历史监测数据
export function waterMonitorHistoryMonitorDataTable(params) {
  return axiosMethods.get(LOGIN_PREFIX + '/water/monitor/historyMonitorDataTable', params)
}

// 历史监测数据表格列
export function waterMonitorHistoryMonitorDataTableColumn(params) {
  return axiosMethods.get(LOGIN_PREFIX + '/water/monitor/historyMonitorDataTableColumn', params)
}

// 报警数据
export function waterAlarmAlarmMonitorData(params) {
  return axiosMethods.get(LOGIN_PREFIX + '/water/alarm/alarmMonitorData', params)
}
